home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / gt_power / iput1103.zip / RTMDR114.ZIP / RTG2MDIR.DOC < prev    next >
Text File  |  1991-03-10  |  12KB  |  361 lines

  1.  
  2.                RTG2MDIR   ROUTING.BBS -> GTMDIR.BBS
  3.  
  4.                 Version 1.14
  5.  
  6. The guff at the start
  7.  
  8.    Ever get fed up with ensuring that ROUTING, and GTMDIR are both kept
  9.    uptodate?... checking every week or so to see what is new, and what
  10.    echoes have closed down?... pain in the ar*e isn't it?.. So, here is
  11.    a partial solution to the problem, RTG2MDIR will build GTMDIR for you
  12.    using the data available in your ROUTING and the status of the echoes
  13.    being read in from ECHLIST.BBS. That way, you keep track of the temp
  14.    down, retired etc echoes, as they will be listed in the appropriate
  15.    GTMDIR.???. The composite GTMDIR.BBS available for your users will
  16.    have all the various specialist echoes all grouped together etc
  17.  
  18.  
  19. Even more junk... better read this bit though
  20. ---------------------------------------------
  21.  
  22.                 ----------------
  23.                 -> Guarantee <-
  24.                 ----------------
  25.  
  26.    You're kidding right?.... a fiver says you ain't paid owt for this -
  27.    so as you lose, send me a fiver ( US$10 ) and that'll do me fine for
  28.    registration.
  29.  
  30.    The software is guaranteed to do nothing except occupy several KBytes
  31.    of disk space, and if executed, take up a little RAM, which it might
  32.    free for later use, if it terminates without hanging.
  33.  
  34.  
  35.  
  36.                   ----------
  37.                   Disclaimer
  38.                   ----------
  39.  
  40.    A sign of the times I suppose, you gotta have this or someone will
  41.    try it on.
  42.  
  43.    The author accepts no responsibility for any of the results caused by
  44.    possesion of, or execution of the program, written and distributed by
  45.    me as RTG2MDIR.
  46.  
  47.    If anything happens at all, then it isn't my fault, no responsibility
  48.    can, or will, be accepted for any results whatsoever which may or may
  49.    not be be directly or indirectly traced to the presence and / or the
  50.    execution of this program.
  51.  
  52.  
  53.             -----------------------------
  54.  
  55.  
  56. What's it do then?.
  57.  
  58.    Reading in GTMDIR.BBS from GTPATH directory, and ROUTING.BBS - also
  59.    from GTPATH, a series of files will be built up, each named GTMDIR
  60.    with the extension E00, E01 etc, contents will be the sections of
  61.    GTMDIR.BBS containing the E01, E02 etc etc echoes.
  62.  
  63. │  All files written are placed in a sub-directory RTG2MDIR.WRK which is
  64. │  created off GTPATH.
  65.  
  66. │   The echo descriptions which are placed in the GTMDIR.??? files in the
  67. │   work directory are will be taken from the following sources:-
  68.  
  69. │    file specified on command line ( ECHOLIST format ),
  70. │        if no file specified on comamnd line, then the
  71. │        config file will be checked for a source, if none
  72. │        is given there, then ECHOLIST.BBS in your GTPATH
  73. │        will be used.
  74.  
  75. │    if none of the above files can be opened, then the descriptions
  76. │    will be taken from GTMDIR.BBS in the GTPATH.
  77.  
  78. │    if GTMDIR.BBS cannot be opened, then the echo descriptions will
  79. │    then be taken from the ROUTING.BBS.
  80.  
  81. │   This gives a multitude of source of echo descriptions. ECHOLIST is
  82. │   the best, because that allows standardisation of echo descriptions.
  83.  
  84.  
  85.  
  86. Command line Switches
  87.  
  88.    /split    this option will read ROUTING.BBS, GTMDIR.BBS and also
  89.         ECHOLIST.BBS from the GTPATH directory and create a few
  90.         files are then created, the name is GTMDIR, and with the
  91.         extension will be the three letters of the echo groups
  92.         that are found in ROUTING.BBS, e.g GTMDIR.E02 etc.
  93.  
  94.         IF the pharase FIDO appears in the description of the
  95.         echo in ROUTING.BBS, then it will always be placed in
  96.         GTMDIR.DOG regardless of whether /CAT ( see below ) is
  97.         used.
  98.  
  99.         NOTE
  100.         these files will overwrite any existing files.
  101.  
  102.         These files will be in the normal GTMDIR.BBS format,
  103.         with access level, directory and description on the
  104.         one line.
  105.  
  106.         If ECHOLIST.BBS cannot be found, then the descriptions
  107.         will be extracted from the existing GTMDIR.BBS, along
  108.         with the access level to the message base.
  109.  
  110.         When GTMDIR isn't available, then the message base
  111.         description and the path are taken from those details
  112.         specified in ROUTING.BBS, and the access level to be
  113.         associated with each echo is as specified in config
  114.         file with the ACCESS parameter, if this has not been
  115. │        specified there, then it defaults to 'A'.
  116.  
  117.         Private, public, netmail, and readonly message bases
  118.         are catered for, as are those flagged as temp down,
  119.         retired, renumbered, new sponsor, unknown sponsor
  120.         etc etc in ECHOLIST.BBS ( new hours is the only one
  121.         I'm not interested ). Oh, and don't worry about any
  122.         password encrypted echoes, these should be handled
  123.         OK in the situation where the echo description is
  124.         taken from ROUTING.BBS, but don't take my word for it,
  125.         check!.
  126.  
  127.    /cat        added this because the ECHOLIST format was changed,
  128.         and a 'new' field added, a three letter category for
  129.         the echoes, e.g. SPT - Sport, CHT - chat etc etc, so
  130.         might as well let you sort our GTMDIR list by echo
  131.         subject, without you having to trail through them all.
  132.  
  133.         There may be the case where an echo is listed in the
  134.         GTMDIR and ROUTING, but has no entry in ECHOLIST, in
  135.         the UK this is rlevant to the E30 echoes. If the /CAT
  136.         switch is used, then these echoes will be listed in
  137.         GTMDIR._#_, yeah, I know it's a wierd extension, but
  138.         can *you* think of something that others might not be
  139.         using?.
  140.  
  141.  
  142.    /missing    as /SPLIT, except does not write the GTMDIR.Exx files.
  143.         just lists inconsistencies.
  144.  
  145.  
  146.    /build    builds a replacement for GTMDIR.BBS from the GTMDIR.xxx
  147.         files found in the GTPATH directory. The order in which
  148.         the files are added is the same as the order in which the
  149.         extensions are specified in the config file. Any files
  150.         whose extensions are NOT listed in the config file are
  151.         not added, but the extensions will be listed when the
  152.         build has completed.
  153.  
  154. │        Will automatically /split if no GTMDIR files are found
  155. │        in the working directory.
  156.  
  157.  
  158.    /source=d:\path\filename.ext
  159.         if specified this is the file where the descriptions
  160.         for the message bases are found. This file must be in
  161.         the same format as ECHOLIST.BBS, either the new or the
  162.         old format. If not specified on the command line, will
  163.         default to ECHOLIST.BBS in GTPATH, unless it is given
  164.         in RTG2MSIR.CFG, e.g. command line overrides whatever
  165.         is given in the config file.
  166.  
  167.         If the file specified with the /SOURCE switch can not
  168.         be opened, then the required data ( echo descriptions )
  169.         will be those found in GTMDIR.BBS.
  170.  
  171.         Note that if GTMDIR cannot be opened, then the echo
  172.         descriptions will be those you have given in your
  173.         ROUTING.BBS
  174.  
  175.  
  176. │  /welcome[=d:\path\filename.ext]
  177. │        creates a WELCOME.BBS in each message area. The text it
  178. │        taken from the appropriate section of FILENAME.EXT. If
  179. │        no file is specified, the ECHODESC.BBS in GTPATH will
  180. │        be used.
  181. │        The format of this is simple.
  182. │        Exx/yyy
  183. │        details of the echo
  184. │        Exy/yyz         ( next echo number )
  185. │        for Exx/yyy all text between Exx and Exx/yyz will be
  186. │        put in WELCOME.BSS
  187. │        The echo numbers must be in column one with no other
  188. │        text on the line. Other than that the text is lifted
  189. │        verbatim.
  190. │        This option isn't particularly fast, but will do the
  191. │        job, and afer all, it's not often that you would have
  192. │        to do this anyway.
  193. │        ECHODESC.BBS is a perfect source for these details.
  194. │        In fact it's existence led me to doing this bit.
  195.  
  196.  
  197. │  /new        when used with /WELCOME
  198. │        this will write only new WELCOME.BBS files, and will
  199. │               not overwrite any pre-exisitng WELCOME.BBS that you
  200. │        may have already seat up.
  201.  
  202.  
  203. │        when used with /SPLIT
  204. │        will check the specified directory for each of the
  205. │        entries in ROUTING.BBS, and offer the option for you
  206. │        to create the directory.
  207. │        Also applies to /BUILD when RTG2MDR.WRK is empty and
  208. │        /BUILD does a split.
  209.  
  210. │        When a directory has been determined as missing, you
  211. │        will be prompted to create it, skip over this one,
  212. │        create this and all further missing directories, and
  213. │        finally you can ignore this one, and all further ones.
  214.  
  215.  
  216.    /old[nn]    checks MAILIN to determine last bag delivered for each
  217.         echo and copies entries in GTMDIR.BBS which are older
  218.         than nn days to GTMDIR.OLD
  219.  
  220.         NOTE if no qbags are found, it will be assumed that
  221.         this is a new echo.
  222.  
  223.         /* NOT YET AVAILABLE */
  224.  
  225.  
  226.    Config file
  227.  
  228.    The config file - which must be located in the GTPATH directory -
  229.    RTG2MDIR.CFG has the following structure
  230.  
  231.            DEFAULT=d:\path\name.ext
  232.            MAILDRIVE=d:
  233.            EXTENSIONS    this MUST be on first column
  234.            NET
  235.            LOC
  236.            E00
  237.            E01
  238.            E02
  239.            E03
  240.            E05
  241.            E06
  242.            E10
  243.            E30    This comment appears in composite GTMDIR
  244.            END
  245.            ACCESS = A
  246.  
  247.     the extensions are in the order in which the GTMDIR.ext files
  248.     are to be concatenated. If the extension is not found in this
  249.     file, then it will not be included in the concatenated file
  250.     created with the /build switch.
  251.  
  252.     This file is fairly free format, any text after the data is
  253. │    disregarded and can be used as comments. Text following the
  254. │    extensions in either the CATEGORIES or EXTENSIONS sections
  255. │    will appear before the first message base in the composite
  256. │    file. This allows you to add a little one liner comment at
  257. │    the start of each section, this gives the users another way
  258. │    of seeing what the echo subjects are.
  259. │    Refer to the sample RTG2MDR.CFG enclosed in the ZIP.
  260.  
  261.     If the /CAT switch has been used, I'd suggest that you enter
  262.     all the categories listed in ECHOLIST.BBS in RTG2MDIR.CFG
  263.     under the CATEGORIES section.
  264.  
  265.     There is a special file created for those message areas that
  266.     are 'funny', i.e. may not be in the echolist or whatever. The
  267. │    extension on this file is ".#_#".
  268.  
  269.  
  270. Support
  271.  
  272.    You can either netmail me on 013/300, or subscribe to
  273.  
  274.     E03/607  UK Utilities Support
  275.  
  276.    available from a hub near you now....
  277.  
  278.  
  279. Timings
  280.  
  281.    Running on an IBM PS/2 model 50, 10MHz with co-pro, this program
  282.    takes 1m21s to /SPLIT apart a routing file with 382 echoes listed.
  283.    ECHOLIST.BBS was available to supply the echo descriptions.
  284.  
  285.    /WELCOME switch run on same PC, 43 secs, to write WELCOME.BBS for
  286.    128 echoes, including creating directories, with 60 echoes
  287.    having no description found.
  288.  
  289.    /BUILD took 1m43s, creating GTMDIR with 241 echoes listed.
  290.  
  291.  
  292. Restrictions
  293.  
  294.    Only 400 echoes currently supported, this includes those listed
  295.    in ECHOLIST.BBS, so if ECHOLIST.BBS gets any larger......
  296.  
  297.    Path to message base no more then 30 chars and must include the
  298.    drive letter.
  299.  
  300.    Echo description no more then 60 characters, the description in
  301.    ECHOLIST.BBS is less than this.
  302.  
  303.    Will run with down to 180K of RAM free.
  304.  
  305.  
  306.  
  307.  
  308. Revision History
  309.  
  310. V1.00    19/02/91    initial release
  311.  
  312. v1.10    20/02/91    8 hrs later Perry changed the format of the
  313.             ECHOLIST.BBS file. Thanks Perry.... <grin>
  314.             Gave an excuse to add the /CAT switch.
  315.             This version will work with both formats of
  316.             ECHOLIST.BBS
  317.  
  318. 1.11    21/02/91    source rationalisation - not released.
  319.  
  320. 1.12    22/02/91    now takes comments following extension in
  321.             RTG2MDIR.CFG and places them in the composite
  322.             routing file at the start of each section.
  323.  
  324.             fixed small bug with Netmail/Private/Public
  325.             message bases.
  326.  
  327.             added /WELCOME and /NEW, to place WELCOME.BBS
  328.             in the message directories.
  329.  
  330. 1.13    23/02/91    /WELCOME is a tiny bit faster now. Was taking
  331.             several minutes ( 18m on my PC ), now down to
  332.             about 15s.
  333.  
  334.             /NEW will check for message directories when
  335.             used with /SPLIT, and prompt user to create
  336.             it.
  337.  
  338. 1.14    07/03/91        all this stuff about registration, and it did
  339.                         not work properly. It does now!
  340.                         Improved parameter validation.
  341.                         Now distributed as RTMDRxxx.ZIP
  342.  
  343.  
  344. Credits(?).
  345.  
  346. You, for giving this thing a try.
  347.  
  348. Scott Estes,     The Sprawl   032/004 for ECHODESC ( GTEDxxyy.ZIP )
  349. Perry Alexander, Infostation, 032/001 for ECHOLIST ( GTELxxyy.ZIP )
  350. Oliver Bell,     The Wind,    013.000 for help in distribution
  351.  
  352.